package com.blb.blb_erp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blb.blb_erp.entity.SRole;

import javax.management.relation.Role;
import java.util.List;

/**
 *  角色接口
 */
public interface SRoleMapper extends BaseMapper<SRole> {

    /**
     * 根据用户id查询所有角色
     * @param userId
     * @return
     */
    List<SRole> selectRolesByUserId(String userId);
}
